<?php

namespace App\Repository\Admin;



class AdminService
{

    //是否是管理员
    static public function isAdmin()
    {
        if (session('admin_id')) {
            return true;
        } else {
            return false;
        }
    }

    static public function getAdminId()
    {
        return session('admin_id');
    }


}